const express = require("express");
const router = new express.Router();
const productService = require("../../service/mall/product");

router.get("/product/getCategory", productService.getCategory);
router.get("/product/getAllProduct", productService.getAllProduct);
router.get("/product/getDetail", productService.getDetail);
router.get(
    "/product/getProductByCategory",
    productService.getProductByCategory
);
router.get("/product/searchProduct", productService.searchProduct);

module.exports = router;
